package com.video.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ClientGroup implements Serializable {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private Integer pid = -1;
  private String gname;
  private Integer cnumber;

  /**
   * 分组下的所有终端
   */
  @TableField(exist = false)
  private List<ClientMsg> clientMsgs;

}
